package com.spark.colliery.module.agency.fragment

import android.os.Bundle
import android.view.View
import com.spark.colliery.R
import com.spark.common.BaseFragment
import kotlinx.android.synthetic.main.frag_track_task_info.*

/**
 * 任务追踪详情
 */
class TrackTaskInfoFragment : BaseFragment() {
    private var taskId = ""

    companion object {
        fun newInstance(taskId: String): TrackTaskInfoFragment {
            val target = TrackTaskInfoFragment()
            val args = Bundle()
            args.putString("taskId", taskId)
            target.arguments = args
            return target
        }
    }

    override fun contentResId(): Int {
        return R.layout.frag_track_task_info
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

        taskId = arguments?.getString("taskId") ?: ""

        iv_back.setOnClickListener { pop() }
        tv_title.text = "任务追踪"
    }



}